<template>
	<view class="viewport">
		<view class="header">
			<image
				src="http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-20/658defeb-6df2-4fe3-9440-0be40ad9f65f.jpg"
				mode=""></image>
			<view class="tabs-options">
				<text class="tabs-item">XXX1</text>
				<text class="tabs-item">XXX2</text>
			</view>
		</view>


		<view class="v-section">
			<text>xxx1</text>
			<text>xxx2</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		height: 100%;
	}

	.viewport {
		height: 100%;
		background-color: #f1f1f1;
		display: flex;
		flex-direction: column;
	}


	.header {
		height: 274rpx;
		position: relative;

		image {
			height: 224rpx;
			border-radius: 0 0 30rpx 30rpx;
		}

		.tabs-options {
			left: 20rpx;
			right: 20rpx;
			position: absolute;
			bottom: 0;
			height: 100rpx;
			background-color: #fff;
			display: flex;
			justify-content: space-evenly;
			align-items: center;
			border-radius: 10rpx;
			line-height: 50rpx;

			.tabs-item {
				position: relative;
				flex-direction: column;
				font-size: 28rpx;

				&::after {
					content: "";
					width: 1.25rem;
					height: 0.125rem;
					background-color: #27ba9b;
					position: absolute;
					transform: translate(-50%);
					left: 50%;
					bottom: 0;
				}
			}
		}
	}

	.v-section {
		height: 100rpx;
		background-color: orange;
		margin: 40rpx 20rpx 0;
		border-radius: 10rpx;
		display: flex;
		align-items: center;
		justify-content: space-evenly;
		line-height: 60rpx;
		text {
			position: relative;
			&::after {
				content: '';
				width: 50rpx;
				height: 4rpx;
				background-color: #27ba9b;
				position: absolute;
				transform: translate(-50%);
				left: 50%;
				bottom: 0;
			}
		}
	}
</style>